package com.bdqn.membersystem.servicce.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.bdqn.membersystem.mapper.UserBuyBonusMapper;
import java.util.List;
import com.bdqn.membersystem.pojo.UserBuyBonus;
import com.bdqn.membersystem.servicce.UserBuyBonusService;
@Service
public class UserBuyBonusServiceImpl implements UserBuyBonusService{

    @Resource
    private UserBuyBonusMapper userBuyBonusMapper;

    @Override
    public int deleteByPrimaryKey(String buyBonusId) {
        return userBuyBonusMapper.deleteByPrimaryKey(buyBonusId);
    }

    @Override
    public int insertSelective(UserBuyBonus record) {
        return userBuyBonusMapper.insertSelective(record);
    }

    @Override
    public UserBuyBonus selectByPrimaryKey(String buyBonusId) {
        return userBuyBonusMapper.selectByPrimaryKey(buyBonusId);
    }

    @Override
    public int updateByPrimaryKeySelective(UserBuyBonus record) {
        return userBuyBonusMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateBatch(List<UserBuyBonus> list) {
        return userBuyBonusMapper.updateBatch(list);
    }

    @Override
    public int batchInsert(List<UserBuyBonus> list) {
        return userBuyBonusMapper.batchInsert(list);
    }

    @Override
    public int insertOrUpdate(UserBuyBonus record) {
        return userBuyBonusMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(UserBuyBonus record) {
        return userBuyBonusMapper.insertOrUpdateSelective(record);
    }

}
